//
//  ZRFishLayer.m
//  TestFile
//
//  Created by 黄涛 on 2018/7/10.
//  Copyright © 2018年 アポロジャパン. All rights reserved.
//

#import "ZRFishLayer.h"

@implementation ZRFishLayer

- (void)drawInContext:(CGContextRef)ctx{
    [super drawInContext:ctx];
    
    [self drawShark:ctx];
    
    
}

#pragma mark - 小鱼
- (void)drawFish:(CGContextRef)ctx{
    
    
    
    
}
#pragma mark - 鲨鱼
- (void)drawShark:(CGContextRef)ctx{
    
    CGFloat width = self.bounds.size.width;
    CGFloat height = self.bounds.size.height;
    
    CGContextSetLineWidth(ctx, 1);
    CGContextAddArc(ctx, width + 1 , height + 1, width,M_PI, 1.5 * M_PI, 0);
    CGContextStrokePath(ctx);
    CGContextAddArc(ctx, width * 1.9, height / 1.9, width + 2 ,  M_PI * 0.75, M_PI * 1.25 , 0);
    CGContextStrokePath(ctx);
    
}




@end
